<template>
	<page-body>
		<view class="page">
			<view class="flex flex-direction align-stretch benben-position-layout flex home_flex_0_higd"
				:style="{height:(90+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between home_fd0_0_higd'>
					<view class='flex flex-wrap align-center home_fd0_0_c0_higd'>
						<image class='home_fd0_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"34.png"'></image>
						<text class='home_fd0_0_c0_c1_higd'>{{school}}</text>
						<text class='fu-iconfont2  home_fd0_0_c0_c2_higd' v-if="(roles == 0|| roles==1) && group == 2"
							@tap.stop="showFunc()">&#xe78a;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<!--     <view   class='flex flex-direction flex-wrap align-center'      >
        <text class='fu-iconfont2  home_fd0_0_c1_c0_c0_higd'  >&#xe7c2;</text>
<text class='home_fd0_0_c1_c0_c1_higd'  >{{$t('消息')}}</text>
</view>
 -->
						<view class='flex flex-direction flex-wrap align-center home_fd0_0_c1_c1_higd'>
							<!-- <text class='fu-iconfont2  home_fd0_0_c1_c0_c0_higd' @tap.stop="ssFunc()">&#xe6e4;</text> -->
							<!-- <text class='home_fd0_0_c1_c1_c1_higd'  >{{$t('扫一扫')}}</text>
 -->
						</view>
					</view>
				</view>

			</view>
			<view :style="{height: (90+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center home_flex_1_higd">
				<view style="position: relative">
					<swiper ref="benbenSwiperfd1_0" @change="bannerIndexfd1_0 = $event.detail.current"
						class='flex position-relative home_fd1_0_higd' previous-margin="0rpx" next-margin="0rpx"
						:display-multiple-items="1" :interval="5000" :duration="500" :autoplay='true' :circular='true'>

						<template v-for='(item,key0) in carouselMap'>
							<swiper-item class='flex  home_fd1_0_higd' :key='key0'>
								<image class='home_fd1_0_c1_c0_higd' mode="aspectFill" :src='item.thumb'
									@tap.stop="dynamicJump(item.href)"></image>
							</swiper-item>
						</template>

					</swiper>
					<view style="position: absolute"
						class="flex dot flex align-center justify-center home_swiperDotfd1_0_higd">
						<template v-for="(item, index) in (carouselMap.length)">
							<view :key="index" v-if="bannerIndexfd1_0 == index"
								class="flex dot selected flex align-center justify-center home_swiperDotSelectedfd1_0_higd">
							</view>
							<view :key="index" v-else
								class="flex dot unselected flex align-center justify-center home_swiperDotUnselectedfd1_0_higd">
							</view>
						</template>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<view class="flex flex-direction align-stretch benben-position-layout flex home_flex_2_higd"
				v-if=" isshow===true" :style="{top:(90+StatusBarRpx)+'rpx', 'overflow-y':`auto`}">
				<template v-for='(item,key0) in list'>
					<view class='flex flex-wrap align-center home_fd2_0_higd' :key='key0'>
						<text class='home_fd2_0_c0_higd' v-if=" item.xqmc!=school"
							@tap.stop="checkxxFunc(item)">{{item.xqmc}}</text><text class='home_fd2_0_c0_1_higd'
							v-if=" item.xqmc==school">{{item.xqmc}}</text>
					</view>
				</template>

			</view>
			<!--  教师角色登录的 安保 及管理员 -->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout home_flex_3_higd"
				v-if="(roles==491 || roles==0|| roles==1) && group==2">
				<view class='flex flex-wrap align-center home_fd3_0_higd'>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c0_higd'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pagefengxian/list/list/list`">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"117.png"'></image>
						<text class='home_fd3_0_c0_c1_higd'>{{$t('风险评估')}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c0_higd'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pagezxjc/zxjc/zxjclist/zxjclist`">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"116.png"'></image>
						<text class='home_fd3_0_c0_c1_higd'>{{$t('专项检查')}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c0_higd'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pageyhpc/yhpc/yhpclist/yhpclist`">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"115.png"'></image>
						<text class='home_fd3_0_c0_c1_higd'>{{$t('隐患排查')}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c0_higd' @tap.stop="jumxgFunc()">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"114.png"'></image>
						<text class='home_fd3_0_c0_c1_higd' v-if=" xginfo.xg_type=='1'">{{$t('计划巡更')}}</text><text
							class='home_fd3_0_c0_c1_higd' v-if=" xginfo.xg_type=='2'">{{$t('日常巡更')}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c4_higd'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pagesanfang/js/rfjs/rfjs`">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"113.png"'></image>
						<text class='home_fd3_0_c0_c1_higd'>{{$t('人防建设')}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c4_higd'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pagesanfang/js/wfjs/wfjs`">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"112.png"'></image>
						<text class='home_fd3_0_c0_c1_higd'>{{$t('物防建设')}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c4_higd'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pagesanfang/js/jfjs/jfjs`">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"111.png"'></image>
						<text class='home_fd3_0_c0_c1_higd'>{{$t('技防建设')}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center home_fd3_0_c4_higd'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pagesanfang/js/zdfjs/zdfjs`">
						<image class='home_fd3_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"110.png"'></image>
						<text class='home_fd3_0_c0_c1_higd'>{{$t('制度防建设')}}</text>
					</view>
				</view>
			</view>


			<!---flex布局6flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout home_flex_4_higd">
				<view class='flex flex-wrap align-center home_fd4_0_higd'>
					<image class='home_fd4_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"244.png"'></image>
					<text class='home_fd4_0_c1_higd'>综合学习</text>
				</view>
				<view class='flex flex-wrap align-center justify-around' v-if="group==1 && xcxzt==0">

					<view class='flex flex-wrap align-center  tp01' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pageschool/school/kc/kc`">
					</view>
					<view class='flex flex-wrap align-center  tp02' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pagexxzx/xxzx/xxzx`">

					</view>
					<view class='flex flex-wrap align-center  tp03' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pageguofang/guofang/about/about`">

					</view>
					<view class='flex flex-wrap align-center  tp04' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pageschool/school/xx/xx`">

					</view>
					<!-- <view class='flex flex-wrap align-center home_fd4_1_c0_higd' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pageschool/school/kc/kc`">
						<image class='home_fd4_1_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"105.png"'></image>
						<view class='flex flex-direction align-stretch home_fd4_1_c0_c1_higd'>
							<text class='home_fd4_1_c0_c1_c0_higd'>{{$t('课程中心')}}</text>
							<text class='home_fd4_1_c0_c1_c1_higd'>{{$t('智慧云课堂')}}</text>
						</view>
					</view>
					<view class='flex flex-wrap align-center home_fd4_1_c1_higd' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pageschool/school/xx/xx`">
						<image class='home_fd4_1_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"106.png"'></image>
						<view class='flex flex-direction align-stretch home_fd4_1_c0_c1_higd'>
							<text class='home_fd4_1_c0_c1_c0_higd'>{{$t('学习中心')}}</text>
							<text class='home_fd4_1_c0_c1_c1_higd'>{{$t('智练保平安')}}</text>
						</view>
					</view> -->
				</view>
				<view class='flex flex-wrap align-center justify-around' v-if="group==2 && xcxzt==0">
					<view class='flex flex-wrap align-center  tp1' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pageschool/school/kc/kc`">
					</view>
					<view class='flex flex-wrap align-center  tp3' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pageguofang/guofang/about/about`">
						
					</view>
					

				</view>
				<view class="flex flex-wrap align-center justify-around" v-if="xcxzt==1">
					<view class='flex flex-wrap align-center home_fd4_1_c0_higd' @tap.stop="handleJumpDiy"
						data-type="switchTab" :data-url="`/pages/tabBar/sjtp/sjtp`">
						<image class='home_fd4_1_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"105.png"'></image>
						<view class='flex flex-direction align-stretch home_fd4_1_c0_c1_higd'>
							<text class='home_fd4_1_c0_c1_c0_higd'>数据图墙</text>
							<!-- <text class='home_fd4_1_c0_c1_c1_higd'>{{$t('智慧云课堂')}}</text> -->
						</view>
					</view>
					<view class='flex flex-wrap align-center home_fd4_1_c1_higd' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pageguofang/guofang/about/about`">
						<image class='home_fd4_1_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"106.png"'></image>
						<view class='flex flex-direction align-stretch home_fd4_1_c0_c1_higd'>
							<text class='home_fd4_1_c0_c1_c0_higd'>国防教育</text>
							<!-- <text class='home_fd4_1_c0_c1_c1_higd'>{{$t('智练保平安')}}</text> -->
						</view>
					</view>
				</view>
			</view>

			<!---flex布局6flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
				<view class='flex flex-direction flex-wrap align-stretch home_fd5_0_higd'>
					<!--     <view   class='flex flex-wrap align-center justify-center home_fd5_0_c0_higd'    v-if= " tabs==0"  >
            <view   class='flex flex-wrap align-center justify-center home_fd5_0_c0_c0_higd'      >
            <view   class='flex flex-wrap align-center home_fd5_0_c0_c0_c0_higd'      >
        </view>
</view>
</view>
 -->
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局4flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout home_flex_7_higd">
				<view class='flex flex-wrap align-center home_fd7_0_higd'>
					<image class='home_fd7_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"93.png"'></image>
					<text class='home_fd7_0_c1_higd'>{{$t('安全知识推荐')}}</text>
					<text class='home_fd7_0_c2_higd' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/xtxx/anqun/anqun`">{{$t('查看更多')}}</text>
					<text class='fu-iconfont2  home_fd7_0_c3_higd' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/xtxx/anqun/anqun`">&#xe7f2;</text>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch'>
					<template v-for='(item,key0) in listData'>
						<view class='flex align-center justify-between home_fd7_1_c0_higd' @tap.stop="handleJumpDiy"
							data-type="navigateTo" :data-url="`/pagesanfang/js/details/details?id=${item.aid}&type=1`"
							:key='key0'>
							<view class='flex flex-direction flex-wrap align-stretch'>
								<view class='flex flex-wrap align-center'>
									<text class='home_fd7_1_c0_c0_c0_c0_higd hid2'>{{item.title}}</text>
								</view>
								<view class='flex flex-wrap align-center home_fd7_1_c0_c0_c1_higd'>
									<text class='home_fd7_1_c0_c0_c1_c0_higd'>{{item.fbsj}}</text>
								</view>
							</view>
							<view class='flex flex-wrap align-center'>
								<image class='home_fd7_1_c0_c1_c0_higd' mode="aspectFill" :src='item.fmt'></image>
							</view>
						</view>
					</template>
					<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
						:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
				</view>
			</view>

			<!---flex布局4flex布局结束-->
			<view class="flex benben-position-layout flex flex-wrap align-center home_flex_8_higd"
				v-if=" isopen===false && xcxzt==0" @tap.stop="openFunc()">
				<image class='home_fd8_0_higd' mode="aspectFit" :src='STATIC_URL+"141.png"'></image>
			</view>
			<view class="flex benben-position-layout flex flex-wrap align-center home_flex_9_higd"
				v-if=" isopen===true && xcxzt==0">
				<view class='flex flex-direction align-stretch justify-between home_fd9_0_higd'>
					<view class='flex flex-wrap align-center home_fd9_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/ai/zs/zs`">
						<image class='home_fd9_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"151.png"'></image>
					</view>
					<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pagetabBar/ai/ai`">
						<image class='home_fd9_0_c0_c0_higd' mode="aspectFit" :src='STATIC_URL+"152.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-center justify-end home_fd9_1_higd' @tap.stop="openFunc()">
					<image class='home_fd9_1_c0_higd' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
				</view>

			</view>
			<view :style="{height: '300rpx'}" v-if=" isopen===true"></view>
			<app-update ref="appUpdate1749462739188" :auto='true' app-ident='user'>

			</app-update>


		</view>
	</page-body>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'
	import { host } from '@/common/config.js';

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				group: 1, //1学生 2教师
				roles: '', //0 或者 1是管理员超管，教职工的是489，保安员是491
				"bannerIndexfd1_0": 0,
				"bannerIndexfd0_1_c0_c1": 0,
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"time_type": [{
					"name": "10:00",
					"value": "1",
					"image": ""
				}, {
					"name": "12:00",
					"value": "2",
					"image": ""
				}, {
					"name": "14:00",
					"value": "3",
					"image": ""
				}],
				"time_id": "1",
				"dataClassification": [],
				"navCentral": [],
				"rightAdvertisement": [],
				"leftAdvertisement": [],
				/** name【商品名称】
				 *   activity_id【活动id】
				 *   economize_price【节省金额】
				 *   rate【秒杀百分比】
				 *   have_sum【总库存】
				 *   stock【剩余库存】
				 *   sales_sum【销量】
				 *   shop_price【划线价】
				 *   thumb【商品图片】
				 *   is_spec【是否多规格 1 是 0 否】
				 *   goods_id【商品id】
				 *   activity_price【活动价格】 **/
				"seckillShop": {
					"activity_price": "",
					/** goods_id【秒杀商品id】 **/
					"goods_id": "",
					"is_spec": "",
					"thumb": "",
					"shop_price": "",
					"sales_sum": "",
					"stock": "",
					"have_sum": "",
					"rate": "",
					"economize_price": "",
					/** activity_id【秒杀活动id】 **/
					"activity_id": "",
					"name": ""
				},
				"groupingShop": [],
				"subadvertisement": [],
				/** all【未读消息总数量】
				 *   chat【聊天未读数量】
				 *   message【系统消息未读数量】
				 *   article【系统公告未读数量】 **/
				"messageNum": {
					"article": "",
					"message": "",
					"chat": "",
					"all": ""
				},
				/** tjStatus【猜你喜欢分类id】 **/
				"tjStatus": "3",
				"treatmentList": [],
				"tjStatusType": [{
					"name": "猜你喜欢",
					"value": "3",
					"image": ""
				}, {
					"name": "首发新品",
					"value": "4",
					"image": ""
				}, {
					"name": "热门推荐",
					"value": "2",
					"image": ""
				}],
				"price": 0,
				/** goods_id【秒杀商品id】 **/
				"goods_id": "",
				/** activity_id【秒杀活动id】 **/
				"activity_id": "",
				/** sku_id【秒杀规格id】 **/
				"sku_id": "",
				/** is_close【是否开启签到】
				 *   follow_count【关注的店铺数量】
				 *   is_pay_password【是否设置支付密码 1 已设置 0 未设置】
				 *   nickname【昵称】
				 *   certified【实名认证状态 -1 未进行认证 1 待审核 2 审核通过 3 已拒绝】
				 *   total_money【会员总金额】
				 *   browse_count【足迹数量】
				 *   collection_count【收藏数量】
				 *   coupon【优惠券数量】
				 *   _mobile【手机号不带*号】
				 *   score【积分余额】
				 *   total_consumption_money【总消费金额】
				 *   freeze_money【会员冻结金额】
				 *   user_money【会员余额】
				 *   gender【性别 1 男 2 女】
				 *   birthday【生日】
				 *   email【邮箱】
				 *   account【登录账号】
				 *   avatar【头像】
				 *   real_name【真实姓名】
				 *   mobile【手机号带*号】
				 *   userlevel_id【会员级别】
				 *   id【会员ID】
				 *   tags【标签】
				 *   hobby【爱好】
				 *   address_code【地址编码】
				 *   address【地址】
				 *   invite_code【邀请码】 **/
				"dataUserInfo": {
					"invite_code": "",
					"address": "",
					"address_code": "",
					"hobby": "",
					"tags": "",
					"id": "",
					"userlevel_id": "",
					"mobile": "",
					"real_name": "",
					"avatar": "",
					"account": "",
					"email": "",
					"birthday": "",
					"gender": "",
					"create_time": "",
					"user_money": "",
					"freeze_money": "",
					"total_consumption_money": "",
					"score": "",
					"_mobile": "",
					"coupon": "",
					"collection_count": "",
					"browse_count": "",
					"total_money": "",
					"certified": "",
					"nickname": "",
					"is_pay_password": "",
					"follow_count": "",
					"is_close": ""
				},
				"swiperNum": "",
				"inputList": [],
				"isJump": true,
				"dataList": [],
				"gonggao": [],
				/** carouselMap【轮播图】 **/
				"carouselMap": [],
				/** diy_cate_list【diy分类列表】
				 *   data【分类列表】 **/
				"nav": {
					"data": [],
					"diy_cate_list": []
				},
				"listData": [],
				"page": 1,
				/** list【校区】 **/
				"list": [],
				/** isshow【是否显示校区切换】 **/
				"isshow": false,
				/** school【选中的学校】 **/
				"school": "",
				"isopen": false,
				/** status【状态】
				 *   end_time【巡更结束时间】
				 *   start_time【巡更开始时间】
				 *   xg_type【巡更类型】
				 *   memberuser_nickname【巡更员】 **/
				"xginfo": {
					"memberuser_nickname": "",
					"xg_type": "",
					"start_time": "",
					"end_time": "",
					"status": ""
				},
				"scene": "",
				saoinfo: {},
				userInfo: {},
				xcxzt:1,//1上 0未 
			};
		},
		computed: {
			isLogin() {
				return uni.getStorageSync('USER_TOKEN_7863') == '' ? false : true;
			}
		},
		watch: {},
		onLoad(options) {
			let {
				scene
			} = options
			if (scene !== undefined) this.scene = scene
			if (global.appTabBarType) this.toHomeDiy()
			this.diyPageListen()
			this.roles = uni.getStorageSync('USER_INFO_7863').roles
			this.group = uni.getStorageSync('USER_GROUP')
			if ((this.roles == 0 || this.roles == 1) && this.group == 2) {
				this.getqi8411462006caFunc()
			}

		},
		onUnload() {
			this.diyOffPageListen()
		},
		onReady() {

		},
		onShow() {
			this.getzt()
			this.group = uni.getStorageSync('USER_GROUP')
			if (this.group == 1) {
				this.school = uni.getStorageSync('USER_INFO_7863').xqmc
				
			} else {
				
			}

			this.isopen = false
			this.roles = uni.getStorageSync('USER_INFO_7863').roles
			this.getCarouselMapFunc()
			this.getke8478b189b32dFunc()
			this.queryUserInfoFunc()
			this.getex7385eff67f39Func()

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.getCarouselMapFunc()
			this.getex7385eff67f39Func()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			async getzt(){
				let info = await this.$api.get(global.apiUrls.post64534cbb2c352, {
					code: 'app_grounding_status'
				});
				console.log(info.data.data)
				// console.log(this)
				this.xcxzt=info.data.data
				// #ifndef MP-WEIXIN
				this.xcxzt=0
				//  #endif
				// this.xcxzt=0
			},
			
			//获取轮播图列表
			async getCarouselMapFunc() {
				//请求方法
				//数据验证

				let datacarouselMap = await this.$api.get(global.apiUrls.post641e624160dd0, {
					type: '14'
				});

				if (datacarouselMap.data.code != 1) {
					this.$message.info(datacarouselMap.data.msg);
					return
				}
				let infocarouselMap = datacarouselMap.data;
				this.carouselMap = infocarouselMap.data

			},

			//查询安全知识管理
			getex7385eff67f39Func() {
				this.minixPagingListsApi = global.apiUrls.post67385eff67f39;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {}
				this.listData = [];
				this.listData = this.listData;
				this.pagingListToggle();

			},
			//查询校区基本信息
			async getqi8411462006caFunc() {

				//请求方法
				//数据验证

				let datalist = await this.$api.get(global.apiUrls.post68411462006ca, {

				});

				if (datalist.data.code != 1) {
					this.$message.info(datalist.data.msg);
					return
				}
				let infolist = datalist.data;
				this.list = infolist.data
				this.school = this.list[0].xqmc
				this.xginfo.xqh = this.list[0].xqh
				uni.setStorageSync('USER_XQ', this.xginfo.xqh);
			},
			//显示校区
			showFunc() {
				this.isshow = !this.isshow
			},
			//选择学校
			checkxxFunc(item) {
				this.school = item.xqmc;
				uni.setStorageSync('USER_XQ', item.xqh);
				this.isshow = false;
			},
			//打开ai
			openFunc() {
				this.isopen = !this.isopen
			},
			//查询巡更配置
			async getke8478b189b32dFunc() {
				console.log(this.isLogin)
				console.log(99999)
				if (this.isLogin === true && this.group == 2) {
					//请求方法
					//数据验证

					let dataxginfo = await this.$api.get(global.apiUrls.post68478b189b32d, {

					});

					if (dataxginfo.data.code != 1) {
						this.$message.info(dataxginfo.data.msg);
						return
					}
					if (!dataxginfo.data.data) {
						this.xginfo.xg_type = 1
						return
					}
					let infoxginfo = dataxginfo.data;
					this.xginfo = infoxginfo.data
					this.school = this.xginfo.tgxxxjcxxxqjbxx_xqmc
					this.xginfo.xqh = this.xginfo.xqh
					uni.setStorageSync('USER_XQ', this.xginfo.xqh);
				} else {
					// this.toLoginDiy();
				}
			},
			//跳转巡更
			jumxgFunc() {
				if (this.xginfo.xg_type == '1') {
					this.$urouter.navigateTo(`/pagexg/xglist/xglist`);
				} else {
					this.$urouter.navigateTo(`/pagercxg/list/list`);
				}
			},
			// 扫一扫
			async ssFunc() {
				let _this = this
				console.log('扫')
				//  #ifdef H5
				_this.getxg('7101740')
				return
				// #endif 
				uni.scanCode({
					onlyFromCamera: true,
					success: function(res) {
						console.log(res)
					},
					complete: function(res) {
						uni.showLoading({
							'title': '识别中...'
						});
						setTimeout(function() {
							uni.hideLoading();
						}, 1000);
						if (res.result) {
							console.log(res.result)
							console.log(typeof(res.result))
							console.log(JSON.parse(res.result).qrCode)
							let code = JSON.parse(res.result).qrCode
							_this.getxg(code)

						} else {
							setTimeout(function() {
								uni.hideLoading();
							}, 800);
						}
					},
					fail: function(res) {
						setTimeout(function() {
							uni.hideLoading();
						}, 800);
					}
				})

			},
			async getxg(code) {
				console.log(code)
				if (this.xginfo.xg_type == '1') {
					let datalist = await this.$api.get(global.apiUrls.post6852607bcdf61, {
						qr_code: code
					});
					console.log(datalist)
					if (datalist.data.code != 1) {
						this.$message.info(datalist.data.msg);
						return
					}
					let infolist = datalist.data.data;
					if (infolist) {
						this.$urouter.navigateTo(
							`/pagexg/xg/xg?id=${infolist.aid}&address=${infolist.xgdmc}&qy=${infolist.ldxx_ldmc}&title=${infolist.title}`
						);
					} else {
						uni.showModal({
							title: '您包含的巡更任务不包含此巡更点',
							duration: 3000,
						})

					}
					console.log(infolist)

				} else {
					let datalist = await this.$api.get(global.apiUrls.post685261f007bdc, {
						qr_code: code
					});
					console.log(datalist)
					if (datalist.data.code != 1) {
						this.$message.info(datalist.data.msg);
						return
					}
					let infolist = datalist.data.data;
					console.log(infolist)
					if (infolist) {
						this.$urouter.navigateTo(
							`/pagexg/xg/xg?id=${infolist.aid}&address=${infolist.xgdmc}&qy=${infolist.ldxx_ldmc}&title=${infolist.title}`
						);
					} else {
						uni.showModal({
							title: '您包含的巡更任务不包含此巡更点',
							duration: 3000,
						})

					}
				}

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			},
			//查询用户详细信息
			async queryUserInfoFunc() {
				console.log(uni.getStorageSync('USER_INFO_7863'))
				console.log(111111)
				if (this.isLogin === true && this.group == 2) {
					//请求方法
					//数据验证
						let url=host+'/api/v1/5c78c4772da97'
					let datauserInfo = await this.$api.get(url, {
						user_id: uni.getStorageSync('USER_INFO_7863').aid
					});

					if (datauserInfo.data.code != 1) {
						this.$message.info(datauserInfo.data.msg);
						return
					}
					let infouserInfo = datauserInfo.data;
					this.userInfo = infouserInfo.data
					return
				}

				if (this.isLogin === true && this.group == 1) {
					//请求方法
					//数据验证

					let datauserInfo = await this.$api.get(global.apiUrls.post5c78c4772da97, {

					});

					if (datauserInfo.data.code != 1) {
						this.$message.info(datauserInfo.data.msg);
						return
					}
					let infouserInfo = datauserInfo.data;
					this.userInfo = infouserInfo.data
					uni.setStorageSync('error_num', this.userInfo.error_num)
					uni.setStorageSync('USER_XQ', this.userInfo.tgxxxjcxxxqjbxx_id);
				}
			},
			//页面监听
			diyPageListen() {
				uni.$on('goodsChange', (data) => {

				});
			},
			//注销页面监听
			diyOffPageListen() {
				uni.$off('goodsChange');
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(image-path('79.png')) no-repeat;
		background-size: 100% auto;

		.home_flex_9_higd {
			width: 100%;
			height: 300rpx;
			overflow: hidden;
			z-index: 12;
			bottom: calc(8% + var(--window-bottom));
			right: 32rpx;

			.home_fd9_0_higd {
				margin: 0rpx 22rpx 0rpx auto;
				height: 100%;

				.home_fd9_0_c0_higd {
					height: 116rpx;
					width: 116rpx;
					background: url(image-path('149.png')) no-repeat;
					background-size: 100% auto;
				}
			}

			.home_fd9_1_higd {
				width: 116rpx;
				height: 116rpx;

				.home_fd9_1_c0_higd {
					width: 86rpx;
					height: 86rpx;
					border-radius: 0rpx;
				}
			}
		}

		.home_fd9_0_c0_c0_higd {
			width: 116rpx;
			height: 116rpx;
			border-radius: 0rpx;
		}

		.home_flex_8_higd {
			width: 135rpx;
			height: 135rpx;
			overflow: hidden;
			z-index: 10;
			bottom: calc(13% + var(--window-bottom));
			right: 0rpx;

			.home_fd8_0_higd {
				width: 135rpx;
				height: 135rpx;
				border-radius: 0rpx;
			}
		}

		.home_flex_7_higd {
			padding: 0rpx 32rpx 0rpx 32rpx;

			.home_fd7_0_higd {
				margin: 32rpx 0rpx 32rpx 0rpx;

				.home_fd7_0_c0_higd {
					width: 38rpx;
					height: 38rpx;
					border-radius: 0rpx;
					margin: 0rpx 6rpx 0rpx 0rpx;
				}

				.home_fd7_0_c1_higd {
					font-size: 36rpx;
					color: #333;
					font-weight: 500;
				}

				.home_fd7_0_c2_higd {
					margin: 0rpx 0rpx 0rpx auto;
				}

				.home_fd7_0_c3_higd {
					font-size: 24rpx;
				}
			}

			.home_fd7_1_c0_higd {
				margin: 0rpx 0rpx 24rpx 0rpx;
				padding: 10rpx 24rpx 10rpx 24rpx;
				background: rgba(255, 255, 255, 1);
				background-size: 100% auto;
				border-radius: 16rpx;

				.home_fd7_1_c0_c0_c0_c0_higd {
					font-size: 28rpx;
					color: #333;
					font-weight: 500;
				}

				.home_fd7_1_c0_c0_c1_higd {
					margin: 20rpx 0rpx 0rpx 0rpx;

					.home_fd7_1_c0_c0_c1_c0_higd {
						font-size: 24rpx;
						color: rgba(153, 153, 153, 1);
					}
				}

				.home_fd7_1_c0_c1_c0_higd {
					border-radius: 12rpx;
					width: 248rpx;
					height: 160rpx;
				}
			}
		}

		.home_flex_6_higd {
			background: var(--benbenbgColor1);
			background-size: 100% auto !important;
			padding: 0rpx 24rpx 0rpx 24rpx;

			.home_fd6_0_higd {
				background: url(image-path('43.png')) no-repeat, transparent;
				background-size: 100% auto !important;
				margin: 40rpx 0rpx 0rpx 0rpx;
				padding: 10rpx 0rpx 32rpx 0rpx;

				.home_fd6_0_c0_higd {
					padding: 0rpx 24rpx 0rpx 24rpx;

					.home_fd6_0_c0_c0_higd {
						width: 32rpx;
						height: 32rpx;
						border-radius: 0rpx 0rpx 0rpx 0rpx;
					}

					.home_fd6_0_c0_c1_higd {
						color: var(--benbenFontColor3);
						font-size: 32rpx;
						font-weight: 500;
						line-height: 45rpx;
						margin: 0rpx 0rpx 0rpx 16rpx;
					}

					.home_fd6_0_c0_c2_higd {
						margin: 0rpx 0rpx 0rpx auto;

						.home_fd6_0_c0_c2_c0_higd {
							color: var(--benbenFontColor3);
							font-size: 24rpx;
							font-weight: 400;
							line-height: 33rpx;
						}

						.home_fd6_0_c0_c2_c1_higd {
							width: 20rpx;
							height: 20rpx;
							border-radius: 0rpx 0rpx 0rpx 0rpx;
							margin: 0rpx 0rpx 0rpx 8rpx;
						}
					}
				}

				.home_fd6_0_c1_higd {
					margin: 32rpx 0rpx 0rpx 15rpx;

					.home_fd6_0_c1_c0_higd {
						margin: 0rpx 0rpx 12rpx 9rpx;
						width: 212rpx;
						border-radius: 16rpx 16rpx 16rpx 16rpx;
						background: var(--benbenbgColor1);
						background-size: 100% auto !important;

						.home_fd6_0_c1_c0_c0_higd {
							width: 212rpx;
							height: 180rpx;
							border-radius: 16rpx 16rpx 0rpx 0rpx;
						}

						.home_fd6_0_c1_c0_c1_higd {
							color: #333333;
							font-size: 24rpx;
							font-weight: 500;
							line-height: 33rpx;
							-webkit-line-clamp: 1;
							overflow: hidden;
							text-overflow: ellipsis;
							display: -webkit-box;
							-webkit-box-orient: vertical;
							margin: 8rpx 22rpx 0rpx 16rpx;
						}

						.home_fd6_0_c1_c0_c2_higd {
							margin: 0rpx 16rpx 0rpx 16rpx;

							.home_fd6_0_c1_c0_c2_c0_higd {
								color: var(--benbenFontColor7);
								font-size: 20rpx;
								font-weight: 700;
								line-height: 30rpx;
								margin: 6rpx 0rpx 0rpx 0rpx;
							}

							.home_fd6_0_c1_c0_c2_c1_higd {
								color: var(--benbenFontColor7);
								font-weight: 600;

								.home_price1_fd6_0_c1_c0_c2_c1_higd {
									font-size: 48rpx;
								}

								.home_price2_fd6_0_c1_c0_c2_c1_higd {
									font-size: 22rpx;
								}
							}
						}

						.home_fd6_0_c1_c0_c3_c0_higd {
							color: var(--benbenFontColor2);
							font-size: 20rpx;
							font-weight: 400;
							text-decoration: line-through;
							margin: 7rpx 0rpx 8rpx 16rpx;
						}

						.home_fd6_0_c1_c0_c3_c1_higd {
							color: var(--benbenFontColor2);
							font-size: 22rpx;
							font-weight: 400;
							line-height: 24rpx;
							margin: 0rpx rpx 8rpx rpx;
							text-decoration: line-through;
						}

						.home_fd6_0_c1_c0_c4_higd {
							margin: 0rpx 16rpx 24rpx 16rpx;

							.home_fd6_0_c1_c0_c4_c0_higd {
								background: url(image-path('47.png')) no-repeat, transparent;
								background-size: 100% auto !important;
								padding: 0rpx 8rpx 4rpx 0rpx;

								.home_fd6_0_c1_c0_c4_c0_c0_higd {
									color: var(--benbenFontColor7);
									font-size: 20rpx;
									font-weight: 400;
									line-height: 28rpx;
									margin: 0rpx 0rpx 0rpx 40rpx;
								}

								.home_fd6_0_c1_c0_c4_c0_c1_higd {
									color: var(--benbenFontColor7);
									font-size: 20rpx;
									font-weight: 400;
									line-height: 28rpx;
								}
							}
						}
					}
				}
			}
		}

		.home_fd5_0_higd {
			background: transparent;
			padding: 12rpx 32rpx 0rpx 32rpx;

			.home_fd5_0_c0_higd {
				margin: 16rpx 0rpx 12rpx 0rpx;

				.home_fd5_0_c0_c0_higd {
					border-radius: 3rpx 3rpx 3rpx 3rpx;
					width: 60rpx;
					height: 6rpx;

					.home_fd5_0_c0_c0_c0_higd {
						border-radius: 3rpx 3rpx 3rpx 3rpx;
						background: #B82441;
						width: 30rpx;
						height: 6rpx;
					}
				}
			}
		}

		.home_flex_4_higd {
			padding: 0rpx 32rpx 0rpx 32rpx;

			.home_fd4_0_higd {
				margin: 32rpx 0rpx 32rpx 0rpx;

				.home_fd4_0_c0_higd {
					width: 38rpx;
					height: 38rpx;
					border-radius: 0rpx;
					margin: 0rpx 6rpx 0rpx 0rpx;
				}

				.home_fd4_0_c1_higd {
					font-size: 36rpx;
					color: #333;
					font-weight: 500;
				}
			}

			.home_fd4_1_c0_higd {
				background: url(image-path('109.png')) no-repeat;
				width: 336rpx;
				height: 160rpx;
				margin: 0rpx 14rpx 14rpx 0rpx;
				background-size: 100% auto;
			}

			.home_fd4_1_c1_higd {
				background: url(image-path('107.png')) no-repeat;
				width: 336rpx;
				height: 160rpx;
				margin: 0rpx 0rpx 14rpx 0rpx;
				background-size: 100% auto;
			}

			.tp1 {
				background: url(image-path('tp1.png')) no-repeat;
				width: 336rpx;
				height: 160rpx;
				// margin: 0rpx 14rpx 14rpx 0rpx;
				background-size: 100% auto;
			}

			.tp01 {
				background: url(image-path('tp01.png')) no-repeat;
				width: 214rpx;
				height: 270rpx;
				margin: 0rpx 14rpx 14rpx 0rpx;
				background-size: 100% auto;
			}

			.tp02 {
				background: url(image-path('tp02.png')) no-repeat;
				width: 214rpx;
				height: 270rpx;
				margin: 0rpx 14rpx 14rpx 0rpx;
				background-size: 100% auto;
			}

			.tp3 {
				background: url(image-path('tp3.png')) no-repeat;
				width: 336rpx;
				height: 160rpx;
				// margin: 0rpx 14rpx 14rpx 0rpx;
				background-size: 100% auto;
			}

			.tp03 {
				background: url(image-path('tp03.png')) no-repeat;
				width: 214rpx;
				height: 270rpx;
				margin: 0rpx 14rpx 14rpx 0rpx;
				background-size: 100% auto;
			}

			.tp4 {
				background: url(image-path('tp4.png')) no-repeat;
				width: 336rpx;
				height: 160rpx;
				margin: 0rpx 0 14rpx 0rpx;
				background-size: 100% auto;
			}
		}

		.home_fd4_1_c0_c0_higd {
			width: 90rpx;
			height: 80rpx;
			border-radius: 0rpx;
			margin: 0rpx 32rpx 0rpx 28rpx;
		}

		.home_fd4_1_c0_c1_higd {
			color: #FFFFFF;
			font-size: 32rpx;
			font-weight: 600;
			font-style: normal;
			text-shadow: 0rpx 3rpx 6rpx #F06E5F;
			text-align: left;
		}

		.home_fd4_1_c0_c1_c0_higd {
			font-size: 32rpx;
		}

		.home_fd4_1_c0_c1_c1_higd {
			font-size: 24rpx;
		}

		.home_flex_3_higd {
			padding: 0rpx 24rpx 0rpx 24rpx;
			margin: 20rpx 0rpx 0rpx 0rpx;

			.home_fd3_0_higd {
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				background: #fff;
				background-size: 100% auto !important;
				padding: 18rpx 0rpx 18rpx 0rpx;
				box-shadow: 0rpx 0rpx 8rpx 1rpx rgba(0, 0, 0, 0.08);
			}
		}

		.home_fd3_0_c0_higd {
			margin: 19rpx 0rpx 38rpx 0rpx;
			width: 25%;
		}

		.home_fd3_0_c0_c0_higd {
			width: 88rpx;
			height: 88rpx;
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			margin: 0rpx 0rpx 18rpx 0rpx;
		}

		.home_fd3_0_c0_c1_higd {
			line-height: 33rpx;
			font-size: 24rpx;
			font-weight: 500;
			color: #333333;
		}

		.home_fd3_0_c4_higd {
			margin: 19rpx 0rpx 19rpx 0rpx;
			width: 25%;
		}

		.home_flex_2_higd {
			width: 340rpx;
			overflow: hidden;
			z-index: 10;
			top: 90rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 4rpx 20rpx 1rpx rgba(128, 0, 0, 0.2);
			left: 56rpx;
			border-radius: 16rpx;
			min-height: 355rpx;

			.home_fd2_0_higd {
				padding: 20rpx 0rpx 0rpx 28rpx;
				margin: 0rpx 0rpx 20rpx 0rpx;

				.home_fd2_0_c0_higd {
					color: #333;
					font-size: 32rpx;
				}

				.home_fd2_0_c0_1_higd {
					color: var(--benbenFontColor5);
					font-size: 32rpx;
				}
			}
		}

		.home_flex_1_higd {
			padding: 0rpx 32rpx 0rpx 32rpx;
		}

		.home_fd1_0_higd {
			width: 686rpx;
			height: 280rpx;
		}

		.home_fd1_0_c1_c0_higd {
			width: 686rpx;
			height: 280rpx;
			border-radius: 16rpx;
		}

		.home_numberfd1_0_c0_higd {
			position: absolute;
			bottom: 20rpx;
			right: 30rpx;
			width: 80rpx;
			height: 40rpx;
			background: #525050;
			border-radius: 6rpx 6rpx 6rpx 6rpx;
			font-size: 24rpx;
			color: #FFFFFF;
			line-height: 46rpx;
			font-weight: 400;
		}

		.home_flex_0_higd {
			width: 750rpx;
			height: 90rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: url(image-path('79.png')) no-repeat;
			background-size: 100% auto !important;

			.home_fd0_0_higd {
				padding: 20rpx 24rpx 0rpx 24rpx;

				.home_fd0_0_c0_higd {
					margin: 0rpx 0rpx 0rpx 0rpx;

					.home_fd0_0_c0_c0_higd {
						width: 34rpx;
						height: 34rpx;
						border-radius: 0rpx 0rpx 0rpx 0rpx;
						margin: 0rpx 0rpx 0rpx 0rpx;
					}

					.home_fd0_0_c0_c1_higd {
						margin: 0rpx 12rpx 0rpx 12rpx;
						color: #FFFFFF;
						font-size: 28rpx;
						font-weight: 700;
						line-height: 45rpx;
					}

					.home_fd0_0_c0_c2_higd {
						font-size: 20rpx;
						color: rgba(255, 255, 255, 1);
					}
				}

				.home_fd0_0_c1_c0_c1_higd {
					font-size: 24rpx;
					color: var(--benbenFontColor3);
				}

				.home_fd0_0_c1_c1_higd {
					margin: 0rpx 0rpx 0rpx 20rpx;

					.home_fd0_0_c1_c1_c1_higd {
						margin: 0rpx 0rpx 0rpx 0rpx;
						font-size: 24rpx;
						color: var(--benbenFontColor3);
					}
				}
			}

			.home_fd0_1_c0_higd {
				border-radius: 32rpx 32rpx 32rpx 32rpx;
				background: rgba(248, 248, 248, 0.8);
				padding: 0rpx 24rpx 0rpx 24rpx;
				margin: 10rpx 32rpx 10rpx 32rpx;
				height: 64rpx;

				.home_fd0_1_c0_c0_higd {
					width: 24rpx;
					height: 24rpx;
					border-radius: 0rpx 0rpx 0rpx 0rpx;
				}
			}
		}

		.home_fd0_0_c1_c0_c0_higd {
			color: var(--benbenFontColor3);
		}

		.home_fd0_1_c0_c1_higd {
			width: 490rpx;
			height: 50rpx;
		}

		.home_fd0_1_c0_c1_c1_c0_higd {
			line-height: 50rpx;
			color: var(--benbenFontColor6);
			-webkit-line-clamp: 1;
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			padding: 0rpx 0rpx 0rpx 10rpx;
		}

		.home_numberfd0_1_c0_c1_c0_higd {
			position: absolute;
			bottom: 20rpx;
			right: 30rpx;
			width: 80rpx;
			height: 40rpx;
			background: #525050;
			border-radius: 6rpx 6rpx 6rpx 6rpx;
			font-size: 24rpx;
			color: #FFFFFF;
			line-height: 46rpx;
			font-weight: 400;
		}
	}

	::v-deep .home_swiperDotfd1_0_higd {
		position: absolute;
		bottom: 20rpx;
		left: 0rpx;
		right: 0rpx;
	}

	::v-deep .home_swiperDotSelectedfd1_0_higd {
		width: 20rpx;
		height: 4rpx;
		border-radius: 2rpx 2rpx 2rpx 2rpx;
		background: rgba(255, 255, 255, 1);
		border: 1px solid #00A7FF;
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}

	::v-deep .home_swiperDotUnselectedfd1_0_higd {
		width: 20rpx;
		height: 4rpx;
		border-radius: 2rpx 2rpx 2rpx 2rpx;
		background: rgba(255, 255, 255, 0.4);
		border: 1px solid rgba(0, 0, 0, 0.3);
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}

	::v-deep .home_swiperDotfd0_1_c0_c1_higd {
		position: absolute;
		bottom: 20rpx;
		left: 0rpx;
		right: 0rpx;
	}

	::v-deep .home_swiperDotSelectedfd0_1_c0_c1_higd {
		width: 16rpx;
		height: 16rpx;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		background: #00A7FF;
		border: 1px solid #00A7FF;
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}

	::v-deep .home_swiperDotUnselectedfd0_1_c0_c1_higd {
		width: 16rpx;
		height: 16rpx;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		background: rgba(0, 0, 0, 0.3);
		border: 1px solid rgba(0, 0, 0, 0.3);
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}
</style>
